You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxInt Class > TMtxInt Methods > TMtxInt.Kron Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxInt.Kron Method

The Kronecker product between two vectors.

Syntax
C#
Visual Basic
public TMtxInt Kron([In] TVecInt Vec1, [In] TVecInt Vec2);

Calculates the Kronecker product between Vec1 and Vec2 and stores the result in the calling matrix. The Rows, Cols and IntPrecision properties of calling matrix are set automatically.

var A: TMtxInt; V1,V2: TVecInt; begin CreateIt(A); CreateIt(V1,V2); try V1.SetIt([1,2,3]); V2.SetIt([4,5,6]); A.Kron(V1,V2); // A becomes: // [4 5 6] // [8 10 12] // [12 15 18] finally FreeIt(A); FreeIt(V1,V2); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!